#ifndef WIDGET_H
#define WIDGET_H

#include <ElaWindow.h>
#include <QApplication>

class HomePage;
class musicPage;
class magicPage;
class settingPage;

class Widget : public ElaWindow
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void onCloseButtonClicked();

private:
    void initWindow();
    void initContent();
    void initSetting();

    HomePage *homePage_{nullptr};
    musicPage *musicPage_{nullptr};
    // magicPage *magicPage_{nullptr};
    settingPage *settingPage_{nullptr};
    QString settingKey_{""};
    QString settingPath_ = QApplication::applicationDirPath() + "/settings.ini";
};
#endif // WIDGET_H
